package com.cdh.cms.mapper;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.cdh.cms.entity.Ad;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.cdh.cms.entity.vo.AdVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 广告推荐 Mapper 接口
 * </p>
 *
 * @author cdh
 * @since 2021-03-01
 */
@Mapper
public interface AdMapper extends BaseMapper<Ad> {

    /**
     * 列表分页查询
     * @param voPage
     * @param queryWrapper
     * @return
     */
    List<AdVo> selectPageByWrapper(Page<AdVo> voPage,
                                   @Param(Constants.WRAPPER) QueryWrapper<AdVo> queryWrapper);
}
